package com.jk.bgdiscount.service;

import com.jk.bgdiscount.dao.discountDao;
import com.jk.bgdiscount.entity.DiscountEntity;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DiscountService {
    @Resource
    private discountDao dao;

    /**
     * @description:  查询用户优惠券类型表
     * @param: []
     * @return: java.util.List<com.jk.bgmainconsumer.entity.DiscountEntity>
     * @author 刘杨彬
     * @date: 2021/9/3 13:21
     */
    public List<DiscountEntity> queryUserDiscount() {

     return dao.queryUserDiscount();
    }

    /**
     * @description:  新增胡用户优惠券类型表
     * @param: [discountEntity]
     * @return: void
     * @author 刘杨彬
     * @date: 2021/9/3 13:25
     */
    public void addDiscount(DiscountEntity discountEntity) {

        dao.addDiscount(discountEntity);
    }
}
